package com.hxkj.controller.http;


import com.hxkj.client.service.http.VisualizationService;
import com.hxkj.domain.po.VisualBean;
import com.integral.mall.file.po.SysFile;
import com.platform.common.domain.result.ResultDataStruct;
import com.platform.common.domain.result.ResultMessageStruct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.Callable;


/**
 * @desc 可视化窗口 http请求
 * @date 2018年8月15日
 * @author yaosy
 * **/
@RestController
@RequestMapping("/visualization")
public class VisualizationController {

    @Autowired
    private VisualizationService visualizationService;

    /***
     * @desc 动态解析模板
     * @date 2018年8月15日
     * ***/
    @RequestMapping(value = "/replace")
    public Callable<ResultMessageStruct> resolve(@RequestBody VisualBean visualBean) throws Exception{
       return()-> visualizationService.replace(visualBean);
    }
}
